package com.cn.zengzeng.spbzengzeng.clone.json;

import java.io.Serializable;

/**
 * @Description:
 * @Author: ZhangZengZeng
 * @Date: 2022/5/9 15:30
 */
public class User implements Serializable,Cloneable {
    private static final long serialVersionUID = -6375569942007776307L;
    private String name ;
    private String age ;
    private Address addrss ;

    @Override
    protected Object clone () throws CloneNotSupportedException {
        return super.clone();
    }

    public User (String name,String age) {
        this.name = name;
        this.age = age;
    }

    public User () {
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public String getAge () {
        return age;
    }

    public void setAge (String age) {
        this.age = age;
    }

    public Address getAddrss () {
        return addrss;
    }
    public void setAddrss (String prin,String city ) {
        this.addrss = new Address(prin,city);
    }

    @Override
    public String toString () {
        return "User{" + "name='" + name + '\'' + ", age='" + age + '\'' + ", addrss=" + addrss + '}';
    }
}
